package com.sixth.health.controller;

import com.sixth.core.entity.TestDetail;
import com.sixth.core.vo.R;
import com.sixth.health.servict.TestDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-08-24 16:52
 **/
@RestController
@RequestMapping("/health/testDetail")
public class TestDetailController {
    @Autowired
    private TestDetailService testDetailService;
    @ApiOperation(value = "app健康测试题目", notes = "根据传入的 String htId 来获取题目id")
    @GetMapping("/getById/{htId}")
    public R<List<TestDetail>> list(@PathVariable String htId){
        return testDetailService.selectAll(htId);
    }
}
